package site.icesky.springboot.redis.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import redis.clients.jedis.JedisCluster;

/**
 * @ClassName: RedisService <br>
 * @Description: redis的日常操作 <br>
 * @Package: site.icesky.springredis.service <br>
 * @author: suitianmou <br>
 * @Date: 2020/5/20-16:46 <br>
 * @version: 1.0 <br>
 * @see <br>
 * @since (从产品的哪一个版本此类被添加进来 ( 可选))<br>
 * 修改历史: <br>
 * 修改时间             修改人           版本变更           修改说明<br>
 * -----------------------------------------------------<br>
 * <br>
 */
@Service
public class RedisService {

    @Autowired
    JedisCluster redisCache;

    public void set( String key, String value){
        redisCache.set(key, value);
    }

    public String get( String key){
        return redisCache.get(key);
    }

}
